package cn.jly.flink.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @PackageName cn.jly.flink.entity
 * @ClassName Employee
 * @Description employee实体类
 * @Author 姬岚洋
 * @Date 2021/1/8 下午 4:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee {
    private Long id;
    private String name;
    private BigDecimal salary;
    private Integer deptId;

    public Employee(Long id, String name, Integer deptId) {
        this.id = id;
        this.name = name;
        this.deptId = deptId;
    }

    public Employee(Long id, String name, BigDecimal salary) {
        this.id = id;
        this.name = name;
        this.salary = salary;
    }
}
